<!DOCTYPE html>
<html lang="en">
<head>
    {% load staticfiles %}
    <meta charset="UTF-8">
    <title>书籍列表</title>
    <style>
        table{
            cellpadding:30px;
            border: solid;
            background-image: url("/static/images/50.jpg");
        }
    </style>
</head>
<body>
<div>
    <div class="content">
        <a href="/blog/addbook/">添加书籍</a>
        <a href="/blog/update/">修改书籍</a>
        <a href="/blog/delete/">删除书籍</a>
        <a href="/blog/select/">查询书籍</a>
    </div>
    <hr>
    <div class="books">

        <div>
            <table>
                <thead>
                    <tr>
                        <th>书名</th>
                        <th>作者</th>
                        <th>售价</th>
                        <th>出版时间</th>
                    </tr>

                </thead>
                <tbody>

                    {% for book in bookList %}
                        <tr>
                            <td>{{ book.title}}</td>
                            <td>{{book.author}}</td>
                            <td>{{book.price}}</td>
                            <td>{{book.publishDate}}</td>
                        </tr>
                    {% endfor %}

                </tbody>
            </table>
        </div>

    </div>
</div>
</body>
</html>